﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.MaintenancePlanVMs
{
    public partial class MaintenancePlanBatchVM : BaseBatchVM<MaintenancePlan, MaintenancePlan_BatchEdit>
    {
        public MaintenancePlanBatchVM()
        {
            ListVM = new MaintenancePlanListVM();
            LinkedVM = new MaintenancePlan_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class MaintenancePlan_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._MaintenancePlan._PlanName")]
        public string PlanName { get; set; }
        [Display(Name = "_Model._MaintenancePlan._Equipment")]
        public long? EquipmentId { get; set; }
        [Display(Name = "_Model._MaintenancePlan._EquipmentName")]
        public string EquipmentName { get; set; }
        [Display(Name = "_Model._MaintenancePlan._PlanType")]
        public MaintenanceTypeEnum? PlanType { get; set; }
        [Display(Name = "_Model._MaintenancePlan._IntervalDays")]
        public int? IntervalDays { get; set; }
        [Display(Name = "_Model._MaintenancePlan._NextDueDate")]
        public DateTime? NextDueDate { get; set; }
        [Display(Name = "_Model._MaintenancePlan._IsActive")]
        public bool? IsActive { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}